package com.aistar.util;

public class RedisKeyUtil {

    //保存用户点赞数据的key
    public static final String MAP_KEY_USER_LIKED_UP = "MAP_USER_LIKED_UP";
    //保存用户被点赞数量的key
    public static final String MAP_KEY_USER_LIKED_COUNT_UP = "MAP_USER_LIKED_COUNT_UP";

    public static String getLikedKey(String likedUserId, String likedPostId){
        StringBuilder builder = new StringBuilder();
        builder.append(likedUserId);
        builder.append("::");
        builder.append(likedPostId);
        return builder.toString();
    }
}
